﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using NUnit.Framework;

namespace Flit.Samples.Validation
{
    /// <summary>
    /// These aren't really tests (in the assert sense), they just demonstrate (and print out) what's going on
    /// </summary>
    [TestFixture]
    public class Usage
    {
        [Test]
        [Ignore]
        public void ValidateExample()
        {
            Validation validate = new Validation();
            validate.That("Name", "a really long string").Length().ShorterThan(8);
            validate.That("Value", double.PositiveInfinity).Is().NotInfinity();
            validate.That("Value", 10).Is().LessThan(5);

            foreach (string s in validate.Errors)
            {
                Console.Out.WriteLine(s);
            }
        }
    }
}
